package com.yyq.adms.sysmanage.pojo;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;

import com.yyq.sos.pojo.BackBaseEntity;
import com.yyq.sos.pojo.BaseEntity;
/**
 * @author yhq
 * 对应数据库表: yyq_sys_datadictionary
 * 功能: 系统模块 待久化类
**/
@Entity
@Table(name = "yyq_sys_datadictionary")
public class DataDictionary extends BackBaseEntity  implements java.io.Serializable {

	private String key;
	// 显示的文本
	private String text;
	// 值
	private String value;

	/**
	 * 是否可用
	 */
	private Integer isEnabled;

	//如果级联的就需要有上级
	private Long parentId;
	//描述信息
	private String description;
	
	private String parentKey;
	
	public DataDictionary(){
		
	}
	
	public DataDictionary(String key, String text, String value,
		   Long parentId, String description,
			String parentKey) {
		this.key = key;
		this.text = text;
		this.value = value;
		this.parentId = parentId;
		this.description = description;
		this.parentKey = parentKey;
	}




	@Transient
	public String getParentKey() {
		return parentKey;
	}
	public void setParentKey(String parentKey) {
		this.parentKey = parentKey;
	}
	@Column(name="yyq_KEY")
	public String getKey() {
		return key;
	}
	public void setKey(String key) {
		this.key = key;
	}
	@Column(name="yyq_TEXT")
	public String getText() {
		return text;
	}
	public void setText(String text) {
		this.text = text;
	}
	@Column(name="yyq_VALUE")
	public String getValue() {
		return value;
	}
	public void setValue(String value) {
		this.value = value;
	}

	@Column(name="yyq_PARENT_ID")
	public Long getParentId() {
		return parentId;
	}
	public void setParentId(Long parentId) {
		this.parentId = parentId;
	}
	@Column(name="yyq_DESCRIPTION")
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	
	@Column(name="isenabled")
	public Integer getIsEnabled() {
		return isEnabled;
	}
	public void setIsEnabled(Integer isEnabled) {
		this.isEnabled = isEnabled;
	}
	
	
}
